<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="朋友信息，个人记事" />
<meta name="keywords" content="朋友，信息，记事" />
<meta name="author" content="huiliang" />
<meta name="robots" content="all" />
<style type="text/css">@import "style/main.css"</style>
<script language="javascript" type="text/javascript" src="js/base.js"></script>
<title>数据库初始化</title>
<body>
<div id="wrapper" style="magin">
<?php
require_once("database/cdatabase.php");
$database = new database();
$database->databaseName = "connection";//设置数据库名称
$database->createDatabase($database->databaseName);//创建数据库
if ($database->cdatabase){
	print_r("Create database success fully !<br />");
	print_r("Tables will be created next step !<br />");
}
else {
	print_r("Failed create database!<br />");
}
$userTable = $database->createUserTable();
$friend = $database->createfriend();
$Friend_class = $database->createFriend_class();
$InformationBook = $database->createInformationBook();
if ($userTable){
	print_r("Tables create successfully!<br />");
}
else print_r("Tables create Failed!<br />");
//
?>
</div>
</body>
</html>